package jwebtester.security.auth;

import infrastructure.Scopes;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.security.authentication.ProviderManager;
import org.springframework.stereotype.Service;

@Service
@Scope(Scopes.Singleton)
public class CustomAuthenticationManager extends ProviderManager {

	private static final Logger LOG = LoggerFactory.getLogger(CustomAuthenticationManager.class);

	@Autowired
	public CustomAuthenticationManager(final AuthenticationProviders providers) {
		super(providers);
		LOG.info(String.format("Created %s", CustomAuthenticationManager.class));
	}
}
